import { AppDataSource } from "./data-source"
import { factoryPhoto, removePhoto, searchPhoto, updatePhoto } from "./factory/factory.photo"
import { factoryUser } from "./factory/factory.user"
import { cascadeInsert, createRelation, findRelation } from "./factory/factory.photoMeta";
import { insertAlbumRelation } from "./factory/factory.album";
AppDataSource.initialize().then(async () => {

  // await factoryUser()
  // await factoryPhoto()

  // await searchPhoto()

  // await updatePhoto()
  // await removePhoto()
  // await createRelation();
  // await findRelation()
  // await cascadeInsert()
  // await insertAlbumRelation()
})
  .catch(error => console.log(error))
  .finally(() => { 
    process.exit(0)
  })
